package org.example.demo1.Entity;

import java.time.LocalDateTime;

public class Chapter {
    private Integer chapter_id;       // 章节ID（主键）
    private Integer novel_id;         // 小说ID（外键）
    private Integer chapter_number;   // 章节序号
    private String chapter_title;     // 章节标题
    private Integer word_count;       // 章节字数
    private LocalDateTime create_time;// 创建时间
    private LocalDateTime update_time;// 更新时间
    private Integer chapter_status;
    private String volume_name;

    public Chapter() {
    }

    public Chapter(Integer chapter_id, Integer novel_id, Integer chapter_number, String chapter_title, Integer word_count, LocalDateTime create_time, LocalDateTime update_time, Integer chapter_status) {
        this.chapter_id = chapter_id;
        this.novel_id = novel_id;
        this.chapter_number = chapter_number;
        this.chapter_title = chapter_title;
        this.word_count = word_count;
        this.create_time = create_time;
        this.update_time = update_time;
        this.chapter_status = chapter_status;
    }
    // 章节状态（0:正常, 1:违规, 2:下架）

    public Chapter(Integer chapter_id, Integer novel_id, Integer chapter_number, String chapter_title, Integer word_count, LocalDateTime create_time, LocalDateTime update_time, Integer chapter_status, String volume_name) {
        this.chapter_id = chapter_id;
        this.novel_id = novel_id;
        this.chapter_number = chapter_number;
        this.chapter_title = chapter_title;
        this.word_count = word_count;
        this.create_time = create_time;
        this.update_time = update_time;
        this.chapter_status = chapter_status;
        this.volume_name = volume_name;
    }

    public String getVolume_name() {
        return volume_name;
    }

    public void setVolume_name(String volume_name) {
        this.volume_name = volume_name;
    }

    public Integer getChapter_id() {
        return chapter_id;
    }

    public void setChapter_id(Integer chapter_id) {
        this.chapter_id = chapter_id;
    }

    public Integer getNovel_id() {
        return novel_id;
    }

    public void setNovel_id(Integer novel_id) {
        this.novel_id = novel_id;
    }

    public Integer getChapter_number() {
        return chapter_number;
    }

    public void setChapter_number(Integer chapter_number) {
        this.chapter_number = chapter_number;
    }

    public String getChapter_title() {
        return chapter_title;
    }

    public void setChapter_title(String chapter_title) {
        this.chapter_title = chapter_title;
    }

    public Integer getWord_count() {
        return word_count;
    }

    public void setWord_count(Integer word_count) {
        this.word_count = word_count;
    }

    public LocalDateTime getCreate_time() {
        return create_time;
    }

    public void setCreate_time(LocalDateTime create_time) {
        this.create_time = create_time;
    }

    public LocalDateTime getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(LocalDateTime update_time) {
        this.update_time = update_time;
    }

    public Integer getChapter_status() {
        return chapter_status;
    }

    public void setChapter_status(Integer chapter_status) {
        this.chapter_status = chapter_status;
    }
}
